package com.wk.springbootlearn.mapper.impl;

import com.wk.springbootlearn.common.model.CommonLog;
import com.wk.springbootlearn.mapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class LogMapperImpl implements LogMapper {

    @Autowired
    private MongoTemplate template;

    @Override
    public void addOneLog(CommonLog log) {
        template.save(log);
    }
}
